# Copy Data Source

Copy a data source between storages.

Endpoint: POST /storages/{storageId}/datasources/{dataSourceId}/copy
Version: 5
Security: apiKey

## Security:

  - `apiKey` (unknown)
    apiKey in header X-API-KEY

## Path parameters:

  - `storageId` (string, required)
    Unique identifier of the Storage.

  - `dataSourceId` (string, required)
    Unique identifier for a Data Source of the Storage.

## Request fields (application/json):

  - `targetStorageId` (string)
    Unique identifier of the Storage.
    Example: 72d6900fce6b326088f5d9d91049e3e6

  - `dataSourceName` (string)
    New data source name
    Example: generated:token

## Response 200:

  - `200` (unknown)
    OK

## Response 200 fields (application/json):

  - `id` (string)
    Unique identifier of a job.
    Example: 35f23c03-1c22-45fe-9484-3ffe769325de

  - `targetStorageId` (string)
    Unique identifier of the Storage.
    Example: 72d6900fce6b326088f5d9d91049e3e6

  - `targetDataSourceId` (string)
    Unique identifier for a Data Source of the Storage.
    Example: 648824a691d8d2503d65103e

  - `status` (string)
    Job execution status.
    Example: RUNNING

  - `statusMessage` (string)
    Additional information to explain the status.
    Example: The job failed because storage is empty.

